home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: Dangling pointer?
- Date: 17 Apr 1996 08:40:28 -0700
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4l33dcINN8ms@keats.ugrad.cs.ubc.ca>
- References: <4l0r4b$jte@dewey.csun.edu> <fcusack-1604962132440001@mudskipper.cac.psu.edu>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <fcusack-1604962132440001@mudskipper.cac.psu.edu>,
- frank. <fcusack@tdx.org> wrote:
- >In article <4l0r4b$jte@dewey.csun.edu>, kc44097@csun.edu (chen) wrote:
- >
- >> What is "dangling pointer",can someone give me a defination and example?
- >> Please e-mail me kc44097@huey.csun.edu
- >>
- >
- >It's the complement of a split infinitive. :)
-
- Actually it isn't. A there is nothing wrong with putting words between the "to"
- and the verb. In fact, it's the only place an adjective can go:
-
- "I want to quickly get this message out"
-
- is perfectly grammatical. It would be ungrammatical to put the "quickly" in
- front of the "to" or after the "get". You could rewrite the sentence as "I want
- to get this message out quickly", but that is a transformation. Linguists take
- the view that the syntax of the language is defined by how the speaker's use
- it, not by the utterly empirically inadequate rules of grammar would have them
- speak or write. Most grammar texts don't even recognize the recursively
- generative nature of sentence structure. So the next time someone criticizes
- your infinitive, tell them to split!
-
- A somewhat better analogy to a dangling C pointer is the use of a reference
- that is unresolved. For example, the use of a word like "he" or "it" without an
- antecedent. That's not a syntactic error, of course---but neither is a dangling
- pointer in C, and that's why any grammar error (legitimate or not) is a bad
- analogy for it.
- --
- I'm not really a jerk, but I play one on Usenet.
-